home *** CD-ROM | disk | FTP | other *** search
/ Champak 62 / Volume 62 - JOGO DISK .iso / Games / my_lovely_home.swf / scripts / frame_1 / DoAction.as
Text File  |  2008-03-17  |  863b  |  38 lines

  1. function init()
  2. {
  3.    var _loc2_ = 1;
  4.    while(_loc2_ <= 7)
  5.    {
  6.       this["thing_mc" + _loc2_].gotoAndStop(1);
  7.       this["btn_mc" + _loc2_]._mc.gotoAndStop(1);
  8.       this["btn_mc" + _loc2_].v = _loc2_;
  9.       this["btn_mc" + _loc2_].onRelease = function()
  10.       {
  11.          if(this._mc._currentframe == this._mc._totalframes)
  12.          {
  13.             this._mc.gotoAndStop(1);
  14.          }
  15.          else
  16.          {
  17.             this._mc.nextFrame();
  18.          }
  19.          this._parent["thing_mc" + this.v].gotoAndStop(this._mc._currentframe);
  20.       };
  21.       _loc2_ = _loc2_ + 1;
  22.    }
  23. }
  24. function SetPrintJob()
  25. {
  26.    my_pj = new PrintJob();
  27.    my_pj.start();
  28.    my_pj.addPage("_root",{printAsBitmap:true});
  29.    my_pj.send();
  30.    delete my_pj;
  31. }
  32. stop();
  33. init();
  34. help_btn.onRelease = function()
  35. {
  36.    help_mc._visible = !help_mc._visible;
  37. };
  38.